// /* components/menu-card/menu-card.wxss */
.menu-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24rpx;


  .tag {
    align-self: start;
    margin-left: 12rpx;
    color: #ff007f;
    font-family: "HarmonyOS Sans SC";
    font-size: 41.67rpx;
    font-style: normal;
    font-weight: 400;
    line-height: 58.33rpx;
  }

  .menu {
    .menu-item {
      display: flex;
      flex-direction: column;
      margin: 35rpx 0;
      height: 220rpx;
      background-color: #fff;
      border-top-left-radius: 8rpx;
      border-bottom-left-radius: 8rpx;
      box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.08);


      .dish-name {
        font-size: 32rpx;
        font-weight: bolder;
        color: #1677ff;
        height: 40rpx;
        line-height: 50rpx;
        text-align: center;
      }

      .dish-content {
        display: flex;
        flex: 1;
        height: 100%;
        align-items: center;

        .dish-img {
          margin: 0 10rpx;

          image {
            width: 110rpx;
            height: 110rpx;
          }
        }


        .dish-detail {
          display: flex;
          flex-direction: column;
          width: 438rpx;
          height: 100%;
          justify-content: space-around;

          .dish-desc {
            // margin-top: 10rpx;
            height: 64rpx;
            font-size: 24rpx;
            color: #868686;
            /* 设置为弹性盒子 */
            display: -webkit-box;
            /* 垂直排列子元素 */
            -webkit-box-orient: vertical;
            /* 显示的行数 */
            -webkit-line-clamp: 2;
            /* 超出隐藏 */
            overflow: hidden;
            /* 超出部分显示省略号 */
            text-overflow: ellipsis;
            letter-spacing: 2rpx;
          }

          .pay {
            display: flex;
            justify-content: space-between;
            align-items: center;

            .money {
              font-size: 32rpx;
            }

            .add {
              display: flex;
              align-items: center;
              justify-content: center;
              margin-right: 12rpx;
              width: 36rpx;
              height: 36rpx;
              line-height: 36rpx;
              border-radius: 18rpx;
              text-align: center;
              border: 0;
              background-color: #1677ff;
            }
          }
        }
      }
    }
  }
}

.details {
  height: 1075rpx;
  width: 686rpx;
  position: relative;
  box-sizing: border-box;

  .controller {
    display: flex;
    position: absolute;
    padding: 16rpx 32rpx;
    right: 0;

    .close {
      margin-left: 16rpx;
    }
  }

  .details-img {
    width: 686rpx;
    height: 475rpx;
    background-color: pink;
  }

  .dish-content {
    padding: 16rpx 32rpx 0;

    .dish-name {
      font-size: 32rpx;
      font-weight: bolder;
      color: #1677ff;
      letter-spacing: 1rpx;
    }

    .dish-tag {
      margin: 8rpx 0 16rpx;
    }

    .dish-desc {
      color: #868686;
      font-size: 26rpx;
      letter-spacing: 6rpx;

      .desc-main {
        margin-top: 16rpx;
      }
    }

  }

  .dish-pay {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 32rpx;
    box-sizing: border-box;

    .money {
      font-size: 36rpx;
    }

    .stepper {
      display: flex;

      .inp {
        width: 70rpx;
        height: 55rpx;
        text-align: center;
        line-height: 55rpx;
        color: #ff007f;
        font-size: 32rpx;
      }
    }
  }

  .subsmit {
    margin: 0 auto;
    padding: 32rpx;
    // width: 500rpx;
  }
}